<?php
namespace app\common\model;
class Card extends Base
{
    protected function initialize()
    {
        parent::initialize();
    }

    public function getRand(){
        $data = $this->select()->toArray();
        $rand = array_rand($data);
        return $data[$rand];
    }

}